package com.xiyu.service.vo.nurse.plan.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 护理计划明细 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class NursePlanDetailBase {

    @Schema(description = "护理计划ID")
    private Long planId;

    @Schema(description = "护理项目ID")
    private Long itemId;

    @Schema(description = "执行方式")
    private Integer execType;

    @Schema(description = "执行频率")
    private List<Long> execFrequency;

    @Schema(description = "执行时间")
    private List<String> execTime;

    @Schema(description = "上次执行时间")
    @Range(max = 127, message = "上次执行时间最大不能超过127")
    @Size(max = 50, message = "上次执行时间长度不能超过50")
    private String lastExecTime;

}
